package com.bw.mallshop.adapter;

import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.bw.mallshop.R;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;

import org.jetbrains.annotations.NotNull;

public class HomeHotAdapter extends BaseQuickAdapter<String, BaseViewHolder> {

    public HomeHotAdapter() {
        super(R.layout.item_home_hot);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder baseViewHolder, String s) {
        ImageView imageView = baseViewHolder.getView(R.id.home_hot_img);
        Glide.with(imageView.getContext()).load(s).into(imageView);
    }
}
